package com.bigcat.gulimall.gulimallproduct.feign;

import com.bigcat.gulimall.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @Ather:Yuan
 * @Date:2020/12/18
 * @Desc:库存服务调用
 */
@FeignClient("gulimall-ware")
public interface WareFeignService {
    /**
     * 获得对应的sku是否有库存
     * @param skuIds
     * @return
     */
    @PostMapping("/gulimallware/wmswaresku/getHasStock")
     R getHasStock(@RequestBody List<Long> skuIds);
}
